package com.woniu.command.inventoryCommand;

import com.woniu.command.Command;
import com.woniu.command.handler.InventoryCommandHandler;
import com.woniu.util.ApplicationContextHolder;


public class ProjectInCommand implements Command<Integer> {
    private InventoryCommandHandler handler;

    public ProjectInCommand(){
        this.handler = ApplicationContextHolder.getApplicationContext()
                .getBean(InventoryCommandHandler.class);
    }

    @Override
    public void execute(Integer id) {
        handler.projectIn(id);
    }
}
